Optimal. Leaf size=46 \[ \frac{x}{a}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a+b} \tan (c+d x)}{\sqrt{b}}\right )}{a d \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470416, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {4127, 3181, 205} \[ \frac{x}{a}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a+b} \tan (c+d x)}{\sqrt{b}}\right )}{a d \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4127
Rule 3181
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{a+b \csc ^2(c+d x)} \, dx &=\frac{x}{a}-\frac{b \int \frac{1}{b+a \sin ^2(c+d x)} \, dx}{a}\\ &=\frac{x}{a}-\frac{b \operatorname{Subst}\left (\int \frac{1}{b+(a+b) x^2} \, dx,x,\tan (c+d x)\right )}{a d}\\ &=\frac{x}{a}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a+b} \tan (c+d x)}{\sqrt{b}}\right )}{a \sqrt{a+b} d}\\ \end{align*}
Mathematica [A] time = 0.204044, size = 46, normalized size = 1. \[ \frac{-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a+b} \tan (c+d x)}{\sqrt{b}}\right )}{\sqrt{a+b}}+c+d x}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.072, size = 50, normalized size = 1.1 \begin{align*}{\frac{\arctan \left ( \tan \left ( dx+c \right ) \right ) }{ad}}-{\frac{b}{ad}\arctan \left ({ \left ( a+b \right ) \tan \left ( dx+c \right ){\frac{1}{\sqrt{ \left ( a+b \right ) b}}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.540766, size = 617, normalized size = 13.41 \begin{align*} \left [\frac{4 \, d x + \sqrt{-\frac{b}{a + b}} \log \left (\frac{{\left (a^{2} + 8 \, a b + 8 \, b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \,{\left (a^{2} + 5 \, a b + 4 \, b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \,{\left ({\left (a^{2} + 3 \, a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{3} -{\left (a^{2} + 2 \, a b + b^{2}\right )} \cos \left (d x + c\right )\right )} \sqrt{-\frac{b}{a + b}} \sin \left (d x + c\right ) + a^{2} + 2 \, a b + b^{2}}{a^{2} \cos \left (d x + c\right )^{4} - 2 \,{\left (a^{2} + a b\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right )}{4 \, a d}, \frac{2 \, d x + \sqrt{\frac{b}{a + b}} \arctan \left (\frac{{\left ({\left (a + 2 \, b\right )} \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt{\frac{b}{a + b}}}{2 \, b \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{2 \, a d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{a + b \csc ^{2}{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.48081, size = 109, normalized size = 2.37 \begin{align*} -\frac{\frac{{\left (\pi \left \lfloor \frac{d x + c}{\pi } + \frac{1}{2} \right \rfloor \mathrm{sgn}\left (2 \, a + 2 \, b\right ) + \arctan \left (\frac{a \tan \left (d x + c\right ) + b \tan \left (d x + c\right )}{\sqrt{a b + b^{2}}}\right )\right )} b}{\sqrt{a b + b^{2}} a} - \frac{d x + c}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]